class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.column :name, :string
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
    end
    add_column "images", "category_id", :integer
  end

  def self.down
    drop_table :categories
    remove_column "images", "category_id"
  end
end